<?php
// +----------------------------------------------------------------------
// | xiongrui [ WE CAN DO IT JUST THINK IT ]
// +----------------------------------------------------------------------
// | Copyright (c) 2013 http://www.xiongrui.cn All rights reserved.
// +----------------------------------------------------------------------
// | Author: molong <molong@tensent.cn> <http://www.xiongrui.cn>
// +----------------------------------------------------------------------

namespace app\common\model;


class Comment extends Base{

  protected $insert = array("create_time");

  protected function setCreateTimeAttr($value){
    return $value ? strtotime($value) : time();
  }

  protected $type       = [
         'create_time' => 'timestamp:Y/m/d H:i:s',
  ];
}
